import { reactive } from "vue";
import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect:"/home",
  },
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/Home.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login.vue"),
  },
  {
    path: "/sort",
    name: "sort",
    component: () => import("@/views/Sort.vue"),
  },
  {
    path:"/AIchat",
    name:"AIchat",
    component:()=>import("@/views/AIchat.vue")
  },{
    path:"/picAI",
    name:"picAI",
    component:()=>import("@/views/SmartVision.vue") 
  },
  {
    path:"/article/1",
    name:"article",
    component:()=>import("@/views/Article.vue")
  }
]

const router = createRouter({
    history: createWebHistory(),
    routes,
  });
  
  export default router;